package shiyan3;

public class Test {
	public static void main(String[] args) {
        CPU cpu = new CPU();
        cpu.setSpeed(3000); 

        HardDisk hardDisk = new HardDisk();
        hardDisk.setAmount(1024); 

        PC pc = new PC();
        pc.setCPU(cpu);
        pc.setHardDisk(hardDisk);

        pc.show();
    }

}
